﻿package mortal.game.view.copy.crossMainCity
{
    import flash.events.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class MainCityIcon extends ActionBaseIcon
    {
        private static var _instance:MainCityIcon;

        public function MainCityIcon()
        {
            super(ImagesConst.MainCityIcon_upSkin);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            GameProxy.copy.enterCrossMainCity();
            return;
        }// end function

        public static function get instance() : MainCityIcon
        {
            if (_instance == null)
            {
                _instance = new MainCityIcon;
            }
            return _instance;
        }// end function

        public static function hasShowingIcon() : Boolean
        {
            if (_instance == null || _instance.isHide)
            {
                return false;
            }
            return true;
        }// end function

    }
}
